home *** CD-ROM | disk | FTP | other *** search
Text File | 2003-05-20 | 83.7 KB | 1,816 lines |
- <refentry id="libgimp-gimpimage" revision="19 Jan 2001">
- <refmeta>
- <refentrytitle>gimpimage</refentrytitle>
- <manvolnum>3</manvolnum>
- <refmiscinfo>LIBGIMP Library</refmiscinfo>
- </refmeta>
-
- <refnamediv>
- <refname>gimpimage</refname><refpurpose></refpurpose>
- </refnamediv>
-
- <refsynopsisdiv><title>Synopsis</title>
- <synopsis>
-
-
-
- <link linkend="gint">gint</link>* <link linkend="gimp-image-list">gimp_image_list</link> (<link linkend="gint">gint</link> *num_images);
- <link linkend="gint32">gint32</link> <link linkend="gimp-image-new">gimp_image_new</link> (<link linkend="gint">gint</link> width,
- <link linkend="gint">gint</link> height,
- <link linkend="GimpImageBaseType">GimpImageBaseType</link> type);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-resize">gimp_image_resize</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> new_width,
- <link linkend="gint">gint</link> new_height,
- <link linkend="gint">gint</link> offx,
- <link linkend="gint">gint</link> offy);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-scale">gimp_image_scale</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> new_width,
- <link linkend="gint">gint</link> new_height);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-delete">gimp_image_delete</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-free-shadow">gimp_image_free_shadow</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gint">gint</link>* <link linkend="gimp-image-get-layers">gimp_image_get_layers</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> *num_layers);
- <link linkend="gint">gint</link>* <link linkend="gimp-image-get-channels">gimp_image_get_channels</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> *num_channels);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-unset-active-channel">gimp_image_unset_active_channel</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gint32">gint32</link> <link linkend="gimp-image-pick-correlate-layer">gimp_image_pick_correlate_layer</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> x,
- <link linkend="gint">gint</link> y);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-raise-layer">gimp_image_raise_layer</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-lower-layer">gimp_image_lower_layer</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-raise-layer-to-top">gimp_image_raise_layer_to_top</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-lower-layer-to-bottom">gimp_image_lower_layer_to_bottom</link>
- (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID);
- <link linkend="gint32">gint32</link> <link linkend="gimp-image-merge-visible-layers">gimp_image_merge_visible_layers</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="GimpMergeType">GimpMergeType</link> merge_type);
- <link linkend="gint32">gint32</link> <link linkend="gimp-image-merge-down">gimp_image_merge_down</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> merge_layer_ID,
- <link linkend="GimpMergeType">GimpMergeType</link> merge_type);
- <link linkend="gint32">gint32</link> <link linkend="gimp-image-flatten">gimp_image_flatten</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-add-layer">gimp_image_add_layer</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID,
- <link linkend="gint">gint</link> position);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-remove-layer">gimp_image_remove_layer</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-add-layer-mask">gimp_image_add_layer_mask</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID,
- <link linkend="gint32">gint32</link> mask_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-remove-layer-mask">gimp_image_remove_layer_mask</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID,
- <link linkend="GimpMaskApplyMode">GimpMaskApplyMode</link> mode);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-raise-channel">gimp_image_raise_channel</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> channel_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-lower-channel">gimp_image_lower_channel</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-add-channel">gimp_image_add_channel</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> channel_ID,
- <link linkend="gint">gint</link> position);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-remove-channel">gimp_image_remove_channel</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> channel_ID);
- <link linkend="gint32">gint32</link> <link linkend="gimp-image-active-drawable">gimp_image_active_drawable</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="GimpImageBaseType">GimpImageBaseType</link> <link linkend="gimp-image-base-type">gimp_image_base_type</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-undo-is-enabled">gimp_image_undo_is_enabled</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-undo-enable">gimp_image_undo_enable</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-undo-disable">gimp_image_undo_disable</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-undo-freeze">gimp_image_undo_freeze</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-undo-thaw">gimp_image_undo_thaw</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-clean-all">gimp_image_clean_all</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gint32">gint32</link> <link linkend="gimp-image-floating-selection">gimp_image_floating_selection</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gint32">gint32</link> <link linkend="gimp-image-floating-sel-attached-to">gimp_image_floating_sel_attached_to</link>
- (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-set-tattoo-state">gimp_image_set_tattoo_state</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> tattoo);
- <link linkend="gint">gint</link> <link linkend="gimp-image-get-tattoo-state">gimp_image_get_tattoo_state</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gint">gint</link> <link linkend="gimp-image-width">gimp_image_width</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gint">gint</link> <link linkend="gimp-image-height">gimp_image_height</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gint32">gint32</link> <link linkend="gimp-image-get-active-layer">gimp_image_get_active_layer</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-set-active-layer">gimp_image_set_active_layer</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> active_layer_ID);
- <link linkend="gint32">gint32</link> <link linkend="gimp-image-get-active-channel">gimp_image_get_active_channel</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-set-active-channel">gimp_image_set_active_channel</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> active_channel_ID);
- <link linkend="gint32">gint32</link> <link linkend="gimp-image-get-selection">gimp_image_get_selection</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-get-component-active">gimp_image_get_component_active</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="GimpChannelType">GimpChannelType</link> component);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-set-component-active">gimp_image_set_component_active</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="GimpChannelType">GimpChannelType</link> component,
- <link linkend="gboolean">gboolean</link> active);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-get-component-visible">gimp_image_get_component_visible</link>
- (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="GimpChannelType">GimpChannelType</link> component);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-set-component-visible">gimp_image_set_component_visible</link>
- (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="GimpChannelType">GimpChannelType</link> component,
- <link linkend="gboolean">gboolean</link> visible);
- <link linkend="gchar">gchar</link>* <link linkend="gimp-image-get-filename">gimp_image_get_filename</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-set-filename">gimp_image_set_filename</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gchar">gchar</link> *filename);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-get-resolution">gimp_image_get_resolution</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gdouble">gdouble</link> *xresolution,
- <link linkend="gdouble">gdouble</link> *yresolution);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-set-resolution">gimp_image_set_resolution</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gdouble">gdouble</link> xresolution,
- <link linkend="gdouble">gdouble</link> yresolution);
- <link linkend="GimpUnit">GimpUnit</link> <link linkend="gimp-image-get-unit">gimp_image_get_unit</link> (<link linkend="gint32">gint32</link> image_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-set-unit">gimp_image_set_unit</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="GimpUnit">GimpUnit</link> unit);
- <link linkend="gint32">gint32</link> <link linkend="gimp-image-get-layer-by-tattoo">gimp_image_get_layer_by_tattoo</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> tattoo);
- <link linkend="gint32">gint32</link> <link linkend="gimp-image-get-channel-by-tattoo">gimp_image_get_channel_by_tattoo</link>
- (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> tattoo);
- <link linkend="guchar">guchar</link>* <link linkend="gimp-image-get-cmap">gimp_image_get_cmap</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> *num_colors);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-image-set-cmap">gimp_image_set_cmap</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="guchar">guchar</link> *cmap,
- <link linkend="gint">gint</link> num_colors);
- <link linkend="guchar">guchar</link>* <link linkend="gimp-image-get-thumbnail-data">gimp_image_get_thumbnail_data</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> *width,
- <link linkend="gint">gint</link> *height,
- <link linkend="gint">gint</link> *bpp);
- #define <link linkend="gimp-image-convert-rgb">gimp_image_convert_rgb</link>
- #define <link linkend="gimp-image-convert-grayscale">gimp_image_convert_grayscale</link>
- #define <link linkend="gimp-image-convert-indexed">gimp_image_convert_indexed</link>
- #define <link linkend="gimp-image-duplicate">gimp_image_duplicate</link>
- </synopsis>
- </refsynopsisdiv>
-
-
-
-
-
- <refsect1>
- <title>Description</title>
- <para>
-
- </para>
- </refsect1>
-
- <refsect1>
- <title>Details</title>
- <refsect2>
- <title><anchor id="gimp-image-list">gimp_image_list ()</title>
- <programlisting><link linkend="gint">gint</link>* gimp_image_list (<link linkend="gint">gint</link> *num_images);</programlisting>
- <para>
- Returns the list of images currently open.
- </para>
- <para>
- This procedure returns the list of images currently open in the
- GIMP.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>num_images</parameter> :</entry>
- <entry> The number of images currently open.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The list of images currently open.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-new">gimp_image_new ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_image_new (<link linkend="gint">gint</link> width,
- <link linkend="gint">gint</link> height,
- <link linkend="GimpImageBaseType">GimpImageBaseType</link> type);</programlisting>
- <para>
- Creates a new image with the specified width, height, and type.
- </para>
- <para>
- Creates a new image, undisplayed with the specified extents and
- type. A layer should be created and added before this image is
- displayed, or subsequent calls to 'gimp_display_new' with this image
- as an argument will fail. Layers can be created using the
- 'gimp_layer_new' commands. They can be added to an image using the
- 'gimp_image_add_layer' command.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>width</parameter> :</entry>
- <entry> The width of the image.
- </entry></row>
- <row><entry align="right"><parameter>height</parameter> :</entry>
- <entry> The height of the image.
- </entry></row>
- <row><entry align="right"><parameter>type</parameter> :</entry>
- <entry> The type of image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The ID of the newly created image.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-resize">gimp_image_resize ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_resize (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> new_width,
- <link linkend="gint">gint</link> new_height,
- <link linkend="gint">gint</link> offx,
- <link linkend="gint">gint</link> offy);</programlisting>
- <para>
- Resize the image to the specified extents.
- </para>
- <para>
- This procedure resizes the image so that it's new width and height
- are equal to the supplied parameters. Offsets are also provided
- which describe the position of the previous image's content. No
- bounds checking is currently provided, so don't supply parameters
- that are out of bounds. All channels within the image are resized
- according to the specified parameters; this includes the image
- selection mask. All layers within the image are repositioned
- according to the specified offsets.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>new_width</parameter> :</entry>
- <entry> New image width.
- </entry></row>
- <row><entry align="right"><parameter>new_height</parameter> :</entry>
- <entry> New image height.
- </entry></row>
- <row><entry align="right"><parameter>offx</parameter> :</entry>
- <entry> x offset between upper left corner of old and new images: (new - old).
- </entry></row>
- <row><entry align="right"><parameter>offy</parameter> :</entry>
- <entry> y offset between upper left corner of old and new images: (new - old).
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-scale">gimp_image_scale ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_scale (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> new_width,
- <link linkend="gint">gint</link> new_height);</programlisting>
- <para>
- Scale the image to the specified extents.
- </para>
- <para>
- This procedure scales the image so that it's new width and height
- are equal to the supplied parameters. Offsets are also provided
- which describe the position of the previous image's content. No
- bounds checking is currently provided, so don't supply parameters
- that are out of bounds. All channels within the image are scaled
- according to the specified parameters; this includes the image
- selection mask. All layers within the image are repositioned
- according to the specified offsets.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>new_width</parameter> :</entry>
- <entry> New image width.
- </entry></row>
- <row><entry align="right"><parameter>new_height</parameter> :</entry>
- <entry> New image height.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-delete">gimp_image_delete ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_delete (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Delete the specified image.
- </para>
- <para>
- If there are no displays associated with this image it will be
- deleted. This means that you can not delete an image through the PDB
- that was created by the user. If the associated display was however
- created through the PDB and you know the display ID, you may delete
- the display. Removal of the last associated display will then delete
- the image.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-free-shadow">gimp_image_free_shadow ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_free_shadow (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Free the specified image's shadow data (if it exists).
- </para>
- <para>
- This procedure is intended as a memory saving device. If any shadow
- memory has been allocated, it will be freed automatically on a call
- to 'gimp_image_delete'.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-layers">gimp_image_get_layers ()</title>
- <programlisting><link linkend="gint">gint</link>* gimp_image_get_layers (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> *num_layers);</programlisting>
- <para>
- Returns the list of layers contained in the specified image.
- </para>
- <para>
- This procedure returns the list of layers contained in the specified
- image. The order of layers is from topmost to bottommost.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>num_layers</parameter> :</entry>
- <entry> The number of layers contained in the image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The list of layers contained in the image.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-channels">gimp_image_get_channels ()</title>
- <programlisting><link linkend="gint">gint</link>* gimp_image_get_channels (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> *num_channels);</programlisting>
- <para>
- Returns the list of channels contained in the specified image.
- </para>
- <para>
- This procedure returns the list of channels contained in the
- specified image. This does not include the selection mask, or layer
- masks. The order is from topmost to bottommost.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>num_channels</parameter> :</entry>
- <entry> The number of channels contained in the image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The list of channels contained in the image.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-unset-active-channel">gimp_image_unset_active_channel ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_unset_active_channel (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Unsets the active channel in the specified image.
- </para>
- <para>
- If an active channel exists, it is unset. There then exists no
- active channel, and if desired, one can be set through a call to
- 'Set Active Channel'. No error is returned in the case of no
- existing active channel.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-pick-correlate-layer">gimp_image_pick_correlate_layer ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_image_pick_correlate_layer (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> x,
- <link linkend="gint">gint</link> y);</programlisting>
- <para>
- Find the layer visible at the specified coordinates.
- </para>
- <para>
- This procedure finds the layer which is visible at the specified
- coordinates. Layers which do not qualify are those whose extents do
- not pass within the specified coordinates, or which are transparent
- at the specified coordinates. This procedure will return -1 if no
- layer is found.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>x</parameter> :</entry>
- <entry> The x coordinate for the pick.
- </entry></row>
- <row><entry align="right"><parameter>y</parameter> :</entry>
- <entry> The y coordinate for the pick.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The layer found at the specified coordinates.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-raise-layer">gimp_image_raise_layer ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_raise_layer (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID);</programlisting>
- <para>
- Raise the specified layer in the image's layer stack
- </para>
- <para>
- This procedure raises the specified layer one step in the existing
- layer stack. It will not move the layer if there is no layer above
- it, or the layer has no alpha channel.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>layer_ID</parameter> :</entry>
- <entry> The layer to raise.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-lower-layer">gimp_image_lower_layer ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_lower_layer (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID);</programlisting>
- <para>
- Lower the specified layer in the image's layer stack
- </para>
- <para>
- This procedure lowers the specified layer one step in the existing
- layer stack. It will not move the layer if there is no layer below
- it, or the layer has no alpha channel.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>layer_ID</parameter> :</entry>
- <entry> The layer to lower.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-raise-layer-to-top">gimp_image_raise_layer_to_top ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_raise_layer_to_top (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID);</programlisting>
- <para>
- Raise the specified layer in the image's layer stack to top of stack
- </para>
- <para>
- This procedure raises the specified layer to top of the existing
- layer stack. It will not move the layer if there is no layer above
- it, or the layer has no alpha channel.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>layer_ID</parameter> :</entry>
- <entry> The layer to raise to top.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-lower-layer-to-bottom">gimp_image_lower_layer_to_bottom ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_lower_layer_to_bottom
- (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID);</programlisting>
- <para>
- Lower the specified layer in the image's layer stack to bottom of
- stack
- </para>
- <para>
- This procedure lowers the specified layer to bottom of the existing
- layer stack. It will not move the layer if there is no layer below
- it, or the layer has no alpha channel.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>layer_ID</parameter> :</entry>
- <entry> The layer to lower to bottom.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-merge-visible-layers">gimp_image_merge_visible_layers ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_image_merge_visible_layers (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="GimpMergeType">GimpMergeType</link> merge_type);</programlisting>
- <para>
- Merge the visible image layers into one.
- </para>
- <para>
- This procedure combines the visible layers into a single layer using
- the specified merge type. A merge type of EXPAND_AS_NECESSARY
- expands the final layer to encompass the areas of the visible
- layers. A merge type of CLIP_TO_IMAGE clips the final layer to the
- extents of the image. A merge type of CLIP_TO_BOTTOM_LAYER clips the
- final layer to the size of the bottommost layer.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>merge_type</parameter> :</entry>
- <entry> The type of merge.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The resulting layer.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-merge-down">gimp_image_merge_down ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_image_merge_down (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> merge_layer_ID,
- <link linkend="GimpMergeType">GimpMergeType</link> merge_type);</programlisting>
- <para>
- Merge the layer passed and the first visible layer below.
- </para>
- <para>
- This procedure combines the passed layer and the first visible layer
- below it using the specified merge type. A merge type of
- EXPAND_AS_NECESSARY expands the final layer to encompass the areas
- of the visible layers. A merge type of CLIP_TO_IMAGE clips the final
- layer to the extents of the image. A merge type of
- CLIP_TO_BOTTOM_LAYER clips the final layer to the size of the
- bottommost layer.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>merge_layer_ID</parameter> :</entry>
- <entry> The layer to merge down from.
- </entry></row>
- <row><entry align="right"><parameter>merge_type</parameter> :</entry>
- <entry> The type of merge.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The resulting layer.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-flatten">gimp_image_flatten ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_image_flatten (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Flatten all visible layers into a single layer. Discard all
- invisible layers.
- </para>
- <para>
- This procedure combines the visible layers in a manner analogous to
- merging with the CLIP_TO_IMAGE merge type. Non-visible layers are
- discarded, and the resulting image is stripped of its alpha channel.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The resulting layer.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-add-layer">gimp_image_add_layer ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_add_layer (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID,
- <link linkend="gint">gint</link> position);</programlisting>
- <para>
- Add the specified layer to the image.
- </para>
- <para>
- This procedure adds the specified layer to the gimage at the given
- position. If the position is specified as -1, then the layer is
- inserted at the top of the layer stack. If the layer to be added has
- no alpha channel, it must be added at position 0. The layer type
- must be compatible with the image base type.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>layer_ID</parameter> :</entry>
- <entry> The layer.
- </entry></row>
- <row><entry align="right"><parameter>position</parameter> :</entry>
- <entry> The layer position.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-remove-layer">gimp_image_remove_layer ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_remove_layer (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID);</programlisting>
- <para>
- Remove the specified layer from the image.
- </para>
- <para>
- This procedure removes the specified layer from the image. If the
- layer doesn't exist, an error is returned. If there are no layers
- left in the image, this call will fail. If this layer is the last
- layer remaining, the image will become empty and have no active
- layer.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>layer_ID</parameter> :</entry>
- <entry> The layer.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-add-layer-mask">gimp_image_add_layer_mask ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_add_layer_mask (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID,
- <link linkend="gint32">gint32</link> mask_ID);</programlisting>
- <para>
- Add a layer mask to the specified layer.
- </para>
- <para>
- This procedure adds a layer mask to the specified layer. Layer masks
- serve as an additional alpha channel for a layer. This procedure
- will fail if a number of prerequisites aren't met. The layer cannot
- already have a layer mask. The specified mask must exist and have
- the same dimensions as the layer. Both the mask and the layer must
- have been created for use with the specified image.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>layer_ID</parameter> :</entry>
- <entry> The layer to receive the mask.
- </entry></row>
- <row><entry align="right"><parameter>mask_ID</parameter> :</entry>
- <entry> The mask to add to the layer.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-remove-layer-mask">gimp_image_remove_layer_mask ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_remove_layer_mask (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID,
- <link linkend="GimpMaskApplyMode">GimpMaskApplyMode</link> mode);</programlisting>
- <para>
- Remove the specified layer mask from the layer.
- </para>
- <para>
- This procedure removes the specified layer mask from the layer. If
- the mask doesn't exist, an error is returned.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>layer_ID</parameter> :</entry>
- <entry> The layer from which to remove mask.
- </entry></row>
- <row><entry align="right"><parameter>mode</parameter> :</entry>
- <entry> Removal mode.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-raise-channel">gimp_image_raise_channel ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_raise_channel (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> channel_ID);</programlisting>
- <para>
- Raise the specified channel in the image's channel stack
- </para>
- <para>
- This procedure raises the specified channel one step in the existing
- channel stack. It will not move the channel if there is no channel
- above it.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel to raise.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-lower-channel">gimp_image_lower_channel ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_lower_channel (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> layer_ID);</programlisting>
- <para>
- Lower the specified layer in the image's layer stack
- </para>
- <para>
- This procedure lowers the specified layer one step in the existing
- layer stack. It will not move the layer if there is no layer below
- it, or the layer has no alpha channel.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>layer_ID</parameter> :</entry>
- <entry> The layer to lower.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-add-channel">gimp_image_add_channel ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_add_channel (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> channel_ID,
- <link linkend="gint">gint</link> position);</programlisting>
- <para>
- Add the specified channel to the image.
- </para>
- <para>
- This procedure adds the specified channel to the image. The position
- channel is not currently used, so the channel is always inserted at
- the top of the channel stack.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel.
- </entry></row>
- <row><entry align="right"><parameter>position</parameter> :</entry>
- <entry> The channel position.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-remove-channel">gimp_image_remove_channel ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_remove_channel (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> channel_ID);</programlisting>
- <para>
- Remove the specified channel from the image.
- </para>
- <para>
- This procedure removes the specified channel from the image. If the
- channel doesn't exist, an error is returned.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-active-drawable">gimp_image_active_drawable ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_image_active_drawable (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Get the image's active drawable
- </para>
- <para>
- This procedure returns the ID of the image's active drawable. This
- can be either a layer, a channel, or a layer mask. The active
- drawable is specified by the active image channel. If that is -1,
- then by the active image layer. If the active image layer has a
- layer mask and the layer mask is in edit mode, then the layer mask
- is the active drawable.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The active drawable.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-base-type">gimp_image_base_type ()</title>
- <programlisting><link linkend="GimpImageBaseType">GimpImageBaseType</link> gimp_image_base_type (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Get the base type of the image.
- </para>
- <para>
- This procedure returns the image's base type. Layers in the image
- must be of this subtype, but can have an optional alpha channel.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The image's base type.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-undo-is-enabled">gimp_image_undo_is_enabled ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_undo_is_enabled (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Check if the image's undo stack is enabled.
- </para>
- <para>
- This procedure checks if the image's undo stack is currently enabled
- or disabled. This is useful when several plugins or scripts call
- each other and want to check if their caller has already used
- 'gimp_image_undo_disable' or 'gimp_image_undo_freeze'.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> True if undo is enabled for this image.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-undo-enable">gimp_image_undo_enable ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_undo_enable (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Enable the image's undo stack.
- </para>
- <para>
- This procedure enables the image's undo stack, allowing subsequent
- operations to store their undo steps. This is generally called in
- conjunction with 'gimp_image_undo_disable' to temporarily disable an
- image undo stack.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> True if the image undo has been enabled.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-undo-disable">gimp_image_undo_disable ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_undo_disable (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Disable the image's undo stack.
- </para>
- <para>
- This procedure disables the image's undo stack, allowing subsequent
- operations to ignore their undo steps. This is generally called in
- conjunction with 'gimp_image_undo_enable' to temporarily disable an
- image undo stack. This is advantageous because saving undo steps can
- be time and memory intensive.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> True if the image undo has been disabled.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-undo-freeze">gimp_image_undo_freeze ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_undo_freeze (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Freeze the image's undo stack.
- </para>
- <para>
- This procedure freezes the image's undo stack, allowing subsequent
- operations to ignore their undo steps. This is generally called in
- conjunction with 'gimp_image_undo_thaw' to temporarily disable an
- image undo stack. This is advantageous because saving undo steps can
- be time and memory intensive. 'gimp_image_undo_{freeze,thaw}' and
- 'gimp_image_undo_{disable,enable}' differ in that the former does
- not free up all undo steps when undo is thawed, so is more suited to
- interactive in-situ previews. It is important in this case that the
- image is back to the same state it was frozen in before thawing,
- else 'undo' behaviour is undefined.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> True if the image undo has been frozen.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-undo-thaw">gimp_image_undo_thaw ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_undo_thaw (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Thaw the image's undo stack.
- </para>
- <para>
- This procedure thaws the image's undo stack, allowing subsequent
- operations to store their undo steps. This is generally called in
- conjunction with 'gimp_image_undo_freeze' to temporarily freeze an
- image undo stack. 'gimp_image_undo_thaw' does NOT free the undo
- stack as 'gimp_image_undo_enable' does, so is suited for situations
- where one wishes to leave the undo stack in the same state in which
- one found it despite non-destructively playing with the image in the
- meantime. An example would be in-situ plugin previews. Balancing
- freezes and thaws and ensuring image consistancy is the
- responsibility of the caller.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> True if the image undo has been thawed.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-clean-all">gimp_image_clean_all ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_clean_all (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Set the image dirty count to 0.
- </para>
- <para>
- This procedure sets the specified image's dirty count to 0, allowing
- operations to occur without having a 'dirtied' image. This is
- especially useful for creating and loading images which should not
- initially be considered dirty, even though layers must be created,
- filled, and installed in the image.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-floating-selection">gimp_image_floating_selection ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_image_floating_selection (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Return the floating selection of the image.
- </para>
- <para>
- This procedure returns the image's floating_sel, if it exists. If it
- doesn't exist, -1 is returned as the layer ID.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The image's floating selection.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-floating-sel-attached-to">gimp_image_floating_sel_attached_to ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_image_floating_sel_attached_to
- (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Return the drawable the floating selection is attached to.
- </para>
- <para>
- This procedure returns the drawable the image's floating selection
- is attached to, if it exists. If it doesn't exist, -1 is returned as
- the drawable ID.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The drawable the floating selection is attached to.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-set-tattoo-state">gimp_image_set_tattoo_state ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_set_tattoo_state (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> tattoo);</programlisting>
- <para>
- Set the tattoo state associated with the image.
- </para>
- <para>
- This procedure sets the tattoo state of the image. Use only by
- save/load plugins that wish to preserve an images tattoo state.
- Using this function at other times will produce unexpected results.
- A full check of uniqueness of states in layers, channels and paths
- will be performed by this procedure and a execution failure will be
- returned if this fails. A failure will also be returned if the new
- tattoo state value is less than the maximum tattoo value from all of
- the tattoos from the paths,layers and channels. After the image data
- has been loaded and all the tattoos have been set then this is the
- last procedure that should be called. If effectively does a status
- check on the tattoo values that have been set to make sure that all
- is OK.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>tattoo</parameter> :</entry>
- <entry> The new tattoo state of the image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-tattoo-state">gimp_image_get_tattoo_state ()</title>
- <programlisting><link linkend="gint">gint</link> gimp_image_get_tattoo_state (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Returns the tattoo state associated with the image.
- </para>
- <para>
- This procedure returns the tattoo state of the image. Use only by
- save/load plugins that wish to preserve an images tattoo state.
- Using this function at other times will produce unexpected results.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The tattoo state associated with the image.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-width">gimp_image_width ()</title>
- <programlisting><link linkend="gint">gint</link> gimp_image_width (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Return the width of the image
- </para>
- <para>
- This procedure returns the image's width. This value is independent
- of any of the layers in this image. This is the \"canvas\" width.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The image's width.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-height">gimp_image_height ()</title>
- <programlisting><link linkend="gint">gint</link> gimp_image_height (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Return the height of the image
- </para>
- <para>
- This procedure returns the image's width. This value is independent
- of any of the layers in this image. This is the \"canvas\" height.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The image's height.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-active-layer">gimp_image_get_active_layer ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_image_get_active_layer (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Returns the specified image's active layer.
- </para>
- <para>
- If there is an active layer, its ID will be returned, otherwise, -1.
- If a channel is currently active, then no layer will be. If a layer
- mask is active, then this will return the associated layer.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The active layer.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-set-active-layer">gimp_image_set_active_layer ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_set_active_layer (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> active_layer_ID);</programlisting>
- <para>
- Sets the specified image's active layer.
- </para>
- <para>
- If the layer exists, it is set as the active layer in the image. Any
- previous active layer or channel is set to inactive. An exception is
- a previously existing floating selection, in which case this
- procedure will return an execution error.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>active_layer_ID</parameter> :</entry>
- <entry> The new image active layer.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-active-channel">gimp_image_get_active_channel ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_image_get_active_channel (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Returns the specified image's active channel.
- </para>
- <para>
- If there is an active channel, this will return the channel ID,
- otherwise, -1.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The active channel.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-set-active-channel">gimp_image_set_active_channel ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_set_active_channel (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint32">gint32</link> active_channel_ID);</programlisting>
- <para>
- Sets the specified image's active channel.
- </para>
- <para>
- If the channel exists, it is set as the active channel in the image.
- Any previous active channel or channel is set to inactive. An
- exception is a previously existing floating selection, in which case
- this procedure will return an execution error.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>active_channel_ID</parameter> :</entry>
- <entry> The new image active channel.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-selection">gimp_image_get_selection ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_image_get_selection (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Returns the specified image's selection.
- </para>
- <para>
- This will always return a valid ID for a selection -- which is
- represented as a channel internally.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The selection channel.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-component-active">gimp_image_get_component_active ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_get_component_active (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="GimpChannelType">GimpChannelType</link> component);</programlisting>
- <para>
- Returns if the specified image's image component is active.
- </para>
- <para>
- This procedure returns if the specified image's image component
- (i.e. Red, Green, Blue intensity channels in an RGB image) is active
- or inactive -- whether or not it can be modified. If the specified
- component is not valid for the image type, an error is returned.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>component</parameter> :</entry>
- <entry> The image component.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> Component is active.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-set-component-active">gimp_image_set_component_active ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_set_component_active (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="GimpChannelType">GimpChannelType</link> component,
- <link linkend="gboolean">gboolean</link> active);</programlisting>
- <para>
- Sets if the specified image's image component is active.
- </para>
- <para>
- This procedure sets if the specified image's image component (i.e.
- Red, Green, Blue intensity channels in an RGB image) is active or
- inactive -- whether or not it can be modified. If the specified
- component is not valid for the image type, an error is returned.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>component</parameter> :</entry>
- <entry> The image component.
- </entry></row>
- <row><entry align="right"><parameter>active</parameter> :</entry>
- <entry> Component is active.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-component-visible">gimp_image_get_component_visible ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_get_component_visible
- (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="GimpChannelType">GimpChannelType</link> component);</programlisting>
- <para>
- Returns if the specified image's image component is visible.
- </para>
- <para>
- This procedure returns if the specified image's image component
- (i.e. Red, Green, Blue intensity channels in an RGB image) is
- visible or invisible -- whether or not it can be seen. If the
- specified component is not valid for the image type, an error is
- returned.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>component</parameter> :</entry>
- <entry> The image component.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> Component is visible.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-set-component-visible">gimp_image_set_component_visible ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_set_component_visible
- (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="GimpChannelType">GimpChannelType</link> component,
- <link linkend="gboolean">gboolean</link> visible);</programlisting>
- <para>
- Sets if the specified image's image component is visible.
- </para>
- <para>
- This procedure sets if the specified image's image component (i.e.
- Red, Green, Blue intensity channels in an RGB image) is visible or
- invisible -- whether or not it can be seen. If the specified
- component is not valid for the image type, an error is returned.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>component</parameter> :</entry>
- <entry> The image component.
- </entry></row>
- <row><entry align="right"><parameter>visible</parameter> :</entry>
- <entry> Component is visible.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-filename">gimp_image_get_filename ()</title>
- <programlisting><link linkend="gchar">gchar</link>* gimp_image_get_filename (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Returns the specified image's filename.
- </para>
- <para>
- This procedure returns the specified image's filename -- if it was
- loaded or has since been saved. Otherwise, returns NULL.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The filename.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-set-filename">gimp_image_set_filename ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_set_filename (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gchar">gchar</link> *filename);</programlisting>
- <para>
- Sets the specified image's filename.
- </para>
- <para>
- This procedure sets the specified image's filename.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>filename</parameter> :</entry>
- <entry> The new image filename.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-resolution">gimp_image_get_resolution ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_get_resolution (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gdouble">gdouble</link> *xresolution,
- <link linkend="gdouble">gdouble</link> *yresolution);</programlisting>
- <para>
- Returns the specified image's resolution.
- </para>
- <para>
- This procedure returns the specified image's resolution in dots per
- inch. This value is independent of any of the layers in this image.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>xresolution</parameter> :</entry>
- <entry> The resolutionin the x-axis, in dots per inch.
- </entry></row>
- <row><entry align="right"><parameter>yresolution</parameter> :</entry>
- <entry> The resolutionin the y-axis, in dots per inch.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-set-resolution">gimp_image_set_resolution ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_set_resolution (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gdouble">gdouble</link> xresolution,
- <link linkend="gdouble">gdouble</link> yresolution);</programlisting>
- <para>
- Sets the specified image's resolution.
- </para>
- <para>
- This procedure sets the specified image's resolution in dots per
- inch. This value is independent of any of the layers in this image.
- No scaling or resizing is performed.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>xresolution</parameter> :</entry>
- <entry> The new image resolution in the x-axis, in dots per inch.
- </entry></row>
- <row><entry align="right"><parameter>yresolution</parameter> :</entry>
- <entry> The new image resolution in the y-axis, in dots per inch.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-unit">gimp_image_get_unit ()</title>
- <programlisting><link linkend="GimpUnit">GimpUnit</link> gimp_image_get_unit (<link linkend="gint32">gint32</link> image_ID);</programlisting>
- <para>
- Returns the specified image's unit.
- </para>
- <para>
- This procedure returns the specified image's unit. This value is
- independent of any of the layers in this image. See the gimp_unit_*
- procedure definitions for the valid range of unit IDs and a
- description of the unit system.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The unit.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-set-unit">gimp_image_set_unit ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_set_unit (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="GimpUnit">GimpUnit</link> unit);</programlisting>
- <para>
- Sets the specified image's unit.
- </para>
- <para>
- This procedure sets the specified image's unit. No scaling or
- resizing is performed. This value is independent of any of the
- layers in this image. See the gimp_unit_* procedure definitions for
- the valid range of unit IDs and a description of the unit system.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>unit</parameter> :</entry>
- <entry> The new image unit.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-layer-by-tattoo">gimp_image_get_layer_by_tattoo ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_image_get_layer_by_tattoo (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> tattoo);</programlisting>
- <para>
- Find a layer with a given tattoo in an image.
- </para>
- <para>
- This procedure returns the layer with the given tattoo in the
- specified image.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>tattoo</parameter> :</entry>
- <entry> The tattoo of the layer to find.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The layer with the specified tattoo.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-channel-by-tattoo">gimp_image_get_channel_by_tattoo ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_image_get_channel_by_tattoo
- (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> tattoo);</programlisting>
- <para>
- Find a channel with a given tattoo in an image.
- </para>
- <para>
- This procedure returns the channel with the given tattoo in the
- specified image.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>tattoo</parameter> :</entry>
- <entry> The tattoo of the channel to find.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The channel with the specified tattoo.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-cmap">gimp_image_get_cmap ()</title>
- <programlisting><link linkend="guchar">guchar</link>* gimp_image_get_cmap (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> *num_colors);</programlisting>
- <para>
- Returns the image's colormap
- </para>
- <para>
- This procedure returns an actual pointer to the image's colormap, as
- well as the number of colors contained in the colormap. If the image
- is not of base type INDEXED, this pointer will be NULL.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>num_colors</parameter> :</entry>
- <entry> Number of colors in the colormap array.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The image's colormap.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-set-cmap">gimp_image_set_cmap ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_image_set_cmap (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="guchar">guchar</link> *cmap,
- <link linkend="gint">gint</link> num_colors);</programlisting>
- <para>
- Sets the entries in the image's colormap.
- </para>
- <para>
- This procedure sets the entries in the specified image's colormap.
- The number of colors is specified by the \"num_colors\" parameter
- and corresponds to the number of INT8 triples that must be contained
- in the \"cmap\" array.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image.
- </entry></row>
- <row><entry align="right"><parameter>cmap</parameter> :</entry>
- <entry> The new colormap values.
- </entry></row>
- <row><entry align="right"><parameter>num_colors</parameter> :</entry>
- <entry> Number of colors in the colormap array.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-get-thumbnail-data">gimp_image_get_thumbnail_data ()</title>
- <programlisting><link linkend="guchar">guchar</link>* gimp_image_get_thumbnail_data (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gint">gint</link> *width,
- <link linkend="gint">gint</link> *height,
- <link linkend="gint">gint</link> *bpp);</programlisting>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry></entry></row>
- <row><entry align="right"><parameter>width</parameter> :</entry>
- <entry></entry></row>
- <row><entry align="right"><parameter>height</parameter> :</entry>
- <entry></entry></row>
- <row><entry align="right"><parameter>bpp</parameter> :</entry>
- <entry></entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-convert-rgb">gimp_image_convert_rgb</title>
- <programlisting>#define gimp_image_convert_rgb gimp_convert_rgb
- </programlisting>
- <para>
-
- </para></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-convert-grayscale">gimp_image_convert_grayscale</title>
- <programlisting>#define gimp_image_convert_grayscale gimp_convert_grayscale
- </programlisting>
- <para>
-
- </para></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-convert-indexed">gimp_image_convert_indexed</title>
- <programlisting>#define gimp_image_convert_indexed gimp_convert_indexed
- </programlisting>
- <para>
-
- </para></refsect2>
- <refsect2>
- <title><anchor id="gimp-image-duplicate">gimp_image_duplicate</title>
- <programlisting>#define gimp_image_duplicate gimp_channel_ops_duplicate
- </programlisting>
- <para>
-
- </para></refsect2>
-
- </refsect1>
-
-
-
-
- </refentry>
-